import Taro from "@tarojs/taro"
import { Component } from 'react'
import { Provider } from 'react-redux'
import { initData, store } from './utils/init'
import './app.less'


class App extends Component {
  componentDidMount() {

  }
  async onLaunch(options) {
    console.log(options);
    await initData()
  }
  onShow(options) {
    console.log('onShow', options);
  }
  componentDidShow() { }

  onHide() {
    try {
      Taro.removeStorageSync('v2_company')
    } catch (e) { }

  }
  // 在 App 类中的 render() 函数没有实际作用
  // 请勿修改此函数
  render() {
    return (
      <Provider store={store}>
        {this.props.children}
      </Provider>
    )
  }
}

export default App
